home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 November
/
CHIP Kasım 1998.iso
/
DRIVERS
/
CD-Rom
/
220x.exe
/
CH1.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-12
|
2KB
|
122 lines
ECHO OFF
cls
prompt $p$g
if "%1" == "?" goto usage
if "%1" == "at" goto inst
if "%1" == "AT" goto inst
if "%1" == "xt" goto inst
if "%1" == "XT" goto inst
if "%1" == "2at" goto inst
if "%1" == "2AT" goto inst
if "%1" == "2xt" goto inst
if "%1" == "2XT" goto inst
if "%1" == "3at" goto inst
if "%1" == "3AT" goto inst
if "%1" == "3xt" goto inst
if "%1" == "3XT" goto inst
if "%1" == "4at" goto inst
if "%1" == "4AT" goto inst
if "%1" == "4xt" goto inst
if "%1" == "4XT" goto inst
sel_seq
:inst
ECHO OFF
IF EXIST AUTOEXEC.BAT DEL AUTOEXEC.BAT
IF EXIST CONFIG.SYS DEL CONFIG.SYS
IF EXIST *.NEW DEL *.NEW
cls
ECHO\
ECHO NOTICE: If the DOS version is 5.0, MS-DOS Extensions is ignored
ECHO as Incorrect DOS version.
ECHO\
ECHO Sony MS-DOS CD-ROM Extensions will be installed on C:\%2.
ECHO\
ECHO AUTOEXEC.BAT and CONFIG.SYS files are backed up on C:\%2.
ECHO\
echo To terminate the installation, press Ctrl&C keys.
ECHO\
pause
if "%2" == "" goto instcc0
ECHO ON
MD C:\%2
COPY C:\AUTOEXEC.BAT C:\%2\AUTOEXEC.BAK
COPY C:\CONFIG.SYS C:\%2\CONFIG.BAK
ECHO OFF
goto instcc1
:instcc0
ECHO\
ECHO ON
COPY C:\AUTOEXEC.BAT C:\AUTOEXEC.BAK
COPY C:\CONFIG.SYS C:\CONFIG.BAK
ECHO OFF
:instcc1
echo\
echo on
COPY C:\AUTOEXEC.BAT
COPY C:\CONFIG.SYS
ECHO OFF
ECHO\
ECHO AUTOEXEC.BAT and CONFIG.SYS files will be modified. Wait for a while.
shell3 del_DVR
shell3 del_MSCD
ECHO\
ECHO ON
COPY CONFIG.NEW+CONFIG.%1 CONFIG.NEW
ECHO OFF
ECHO\
shell3 app C:\%2
shell3 m_sys C:\%2
:make_c
cls
ECHO Some files will be copied.
ECHO\
ECHO ON
COPY AUTOEXEC.BAT+AUTOEXEC.ADD C:\AUTOEXEC.BAT
COPY CONFIG.SYS C:\CONFIG.SYS
COPY SONY_CDU.SYS C:\%2
COPY MSCDEX.EXE C:\%2
ECHO OFF
IF EXIST AUTOEXEC.BAT DEL AUTOEXEC.BAT
IF EXIST CONFIG.SYS DEL CONFIG.SYS
IF EXIST *.NEW DEL *.NEW
LAST_MSG C %2
goto exit
:usage
echo\
echo\
echo USAGE...
echo\
echo CH1 XX [Option] and Enter
echo\
echo XX: Your computer type, AT or XT
echo Option: Sub Directory
echo\
echo\
echo CH1 ? and Enter ; Display this message.
echo\
echo\
:exit